#此脚本可实现：输入公里数，打印出费用的金额
licheng = float(input('请输入乘坐的公里数：'))
qibu = 13
if licheng <= 3:
    jine = qibu
elif licheng <= 15:
    jine = (licheng - 3) * 0.3 + (licheng - 3) * 2 + qibu
else:
    jine = (licheng - 15) * 3 + (licheng - 15) * 0.45 + (15-3) * 2 + (15-3) * 0.3 + 13
print('费用总计：',jine)
